local thbattle__xiaoemo_xunzhao = fk.CreateSkill {

  name = "thbattle__xiaoemo_xunzhao",

  tags = {  },

}



thbattle__xiaoemo_xunzhao:addEffect("active", {
  prompt = function(self, player, selected_cards, selected_targets)
    return "#thbattle__xiaoemo_xunzhao-active:::" .. #Fk:currentRoom().alive_players
  end,
  anim_type = "drawcard",
  max_phase_use_time = 1,
  min_card_num = 1,
  max_card_num = function()
    return #Fk:currentRoom().alive_players
  end,
  card_filter =function (self, player, to_select, selected)
        return not player:prohibitDiscard(Fk:getCardById(to_select)) and #selected < #Fk:currentRoom().alive_players

  end,
  on_use = function(self, room, effect)
    local from = effect.from
    room:throwCard(effect.cards, thbattle__xiaoemo_xunzhao.name, from, from)
    if from:isAlive() then
      from:drawCards(#effect.cards, thbattle__xiaoemo_xunzhao.name)
    end
  end,
})

return thbattle__xiaoemo_xunzhao